﻿@model TextRPG.Models.ItemInventoryRelation

@{
    ViewBag.Title = "AddItem";
}

<h2>AddItem</h2>

        <div class="editor-label">
            @Html.LabelFor(model => model.ItemInventoryRelationID)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.ItemInventoryRelationID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.InventoryID)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.InventoryID)
        </div>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
<fieldset>
    <legend>Inventory</legend>
    
        @Html.HiddenFor(model => model.ItemInventoryRelationID)
        @Html.HiddenFor(model => model.InventoryID)

        <div class="editor-label">
            @Html.LabelFor(model => model.ItemID)
        </div>
        <div class="editor-field">
            @Html.DropDownList("ItemID")
            @Html.ValidationMessageFor(model => model.ItemID)
        </div>
        <p>
            <input type="submit" value="Add Item" />
        </p>
</fieldset>
}

<p>
    @Html.ActionLink("Back to List", "Index")
</p>
